package com.ruoyi.pet.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 宠物基本信息对象 pet
 * 
 * @author 木有枝
 * @date 2025-04-13
 */
public class Pet extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 宠物唯一ID */
    private Long petId;

    /** 宠物名称 */
    @Excel(name = "宠物名称")
    private String name;

    /** 宠物种类（如猫、狗） */
    @Excel(name = "宠物种类", readConverterExp = "如=猫、狗")
    private String species;

    /** 宠物年龄 */
    @Excel(name = "宠物年龄")
    private Long age;

    /** 关联的主人ID（外键） */
    @Excel(name = "关联的主人ID", readConverterExp = "外=键")
    private Long ownerId;

    public void setPetId(Long petId) 
    {
        this.petId = petId;
    }

    public Long getPetId() 
    {
        return petId;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setSpecies(String species) 
    {
        this.species = species;
    }

    public String getSpecies() 
    {
        return species;
    }

    public void setAge(Long age) 
    {
        this.age = age;
    }

    public Long getAge() 
    {
        return age;
    }

    public void setOwnerId(Long ownerId) 
    {
        this.ownerId = ownerId;
    }

    public Long getOwnerId() 
    {
        return ownerId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("petId", getPetId())
            .append("name", getName())
            .append("species", getSpecies())
            .append("age", getAge())
            .append("ownerId", getOwnerId())
            .toString();
    }
}
